package com.darren.befriend.adapters;

import com.darren.befriend.fragments.HobiesPageFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class InterestPagerAdapter extends FragmentPagerAdapter {
	
	private int mPageNumber;

	public InterestPagerAdapter(FragmentManager fm, int pageNum) {
		super(fm);
		mPageNumber = pageNum;
	}	
	
	@Override
	public int getCount() {
		return mPageNumber;
	}
	
	@Override
	public Fragment getItem(int position) {
		return HobiesPageFragment.create(position);		
	}
}
